package com.uwlaser.service.dto;


import com.uwlaser.domain.BaseParam;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * 添加产品唯一编码参数-多个
 */
@Data
public class AddProductSnBatchParam extends BaseParam {

    @ApiModelProperty("产品型号")
    @NotBlank(message = "产品型号【productCode】不能为空")
    private String productCode;

    @ApiModelProperty("产品序列号列表")
    @NotEmpty(message = "产品序列号列表【productSns】不能为空")
    @Valid
    private List<String> productSns;

}
